﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace _08_EF.Migrations
{
    public partial class addmigrationsuoyin : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateIndex(
                name: "IX_T_Books_AuthorNames_Name2",
                table: "T_Books",
                columns: new[] { "AuthorNames", "Name2" });

            migrationBuilder.CreateIndex(
                name: "IX_T_Books_Title",
                table: "T_Books",
                column: "Title",
                unique: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropIndex(
                name: "IX_T_Books_AuthorNames_Name2",
                table: "T_Books");

            migrationBuilder.DropIndex(
                name: "IX_T_Books_Title",
                table: "T_Books");
        }
    }
}
